/*    */ package com.qmsk.business.sys.controller;
/*    */ 
/*    */ import com.utils.crypt.DesECBUtils;
/*    */ import com.utils.web.RequestUtils;
/*    */ import com.utils.web.ResponseUtils;
/*    */ import java.io.PrintStream;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ import javax.servlet.http.HttpServletResponse;
/*    */ import org.apache.log4j.Logger;
/*    */ import org.springframework.stereotype.Controller;
/*    */ import org.springframework.web.bind.annotation.RequestMapping;
/*    */ 
/*    */ @Controller
/*    */ @RequestMapping({"/sys"})
/*    */ public class SysController
/*    */ {
/*    */   private static final String DES_KEY = "1234abcd";
/* 20 */   private static final Logger logger = Logger.getLogger(SysController.class);
/*    */ 
/*    */   @RequestMapping(value={"find/decry/memberCode"}, method={org.springframework.web.bind.annotation.RequestMethod.POST})
/*    */   protected void desDecry(HttpServletRequest request, HttpServletResponse response)
/*    */     throws Exception
/*    */   {
/* 27 */     String context = RequestUtils.getString(request, "context");
/*    */     try {
/* 29 */       String sReturn = DesECBUtils.decryptDesBase64(
/* 30 */         context, "1234abcd");
/* 31 */       ResponseUtils.setResponseResult(sReturn, response);
/*    */     } catch (Exception e) {
/* 33 */       logger.error(e);
/* 34 */       ResponseUtils.setErrorMsgResponse(
/* 35 */         RequestUtils.getFindDataErrorMessage(request), response);
/*    */     }
/*    */   }
/*    */ 
/*    */   @RequestMapping(value={"find/des/decry/base64/memberCode"}, method={org.springframework.web.bind.annotation.RequestMethod.GET})
/*    */   protected void desDecryBase64(HttpServletRequest request, HttpServletResponse response)
/*    */     throws Exception
/*    */   {
/* 76 */     String context = RequestUtils.getString(request, "context");
/*    */     try {
/* 78 */       System.out.println(context);
/* 79 */       String sReturn = DesECBUtils.decryptDesBase64(
/* 80 */         context, "1234abcd");
/* 81 */       ResponseUtils.setResponseResult(sReturn, response);
/*    */     } catch (Exception e) {
/* 83 */       logger.error(e);
/* 84 */       ResponseUtils.setErrorMsgResponse(
/* 85 */         RequestUtils.getFindDataErrorMessage(request), response);
/*    */     }
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.sys.controller.SysController
 * JD-Core Version:    0.5.3
 */